<%@ page language="java" import="java.util.*,com.king.cms.common.*,com.king.cms.db.QueryPage,com.king.cms.common.PowerParameter" pageEncoding="UTF-8"%>
<%@ include file="/hotel/include/css.jsp"%><%-- /*包含css样式表*/ --%>

<% 
   
   int pow= 3| PowerParameter.amend |PowerParameter.first |PowerParameter.inquiry|PowerParameter.cancel;
   QueryPage query=(QueryPage)request.getAttribute("query");
   String pageStr = query.getPageStr();
   List dataList = new ArrayList();
   if(query.getDataList() != null)
     dataList=query.getDataList();

 %>
<html>
<head>
<title>  </title>
<meta http-equiv="Pragma" content="No-cache">
<meta http-equiv="Cache-Control" content="No-cache">

<script  language="javascript">
        var trKiobj;
		  
			function  ki_add() 
			{   
			     //window.location.href="<%=path%>/pubinfo.do?action=add&type=0";
				window.open('<%=path%>/pubinfo.do?action=select','_self');
			}
			function ki_del(){
			    var objss = document.getElementsByName('meetingId');
			    var checkIdss = 0; 
		         if(objss.length>0){
		            for(var i=0;i<objss.length;i++){
		                 if(objss[i].checked)
		                   checkIdss++;
		            }        
		         }
		         if(checkIdss == 0)
		           alert('请选择要删除的记录');
		         else
		         if(confirm("确认删除所选记录？"))
				form1.submit();
			}
			function ki_amend(){
			 
		         var objs =   document.getElementsByName('meetingId');
		         var checkIds = 0;
		         var id = '';
		         if(objs.length>0){
		            for(var i=0;i<objs.length;i++){
		                 if(objs[i].checked)
		                   checkIds++;
		            }        
		         }
		         if(checkIds >1){
		            alert('请选择一条记录进行修改');
		            return;
		         }
		         if(checkIds == 0){
		            alert('请选择	要修改的记录');
		            return;
		         }
		         if(checkIds == 1){
		           for(var i=0;i<objs.length;i++){
		                 if(objs[i].checked)
		                   id = objs[i].value;
		            }   
		         } 
		        
		         var type= id.substring(id.indexOf('#')+1);
		         var meetingId = id.substring(0,id.indexOf('#')); 
                 window.open('<%=basePath%>pubinfo.do?action=view&meetingId='+meetingId+'&type='+type,'_self');
				 
			}
			function ki_inquiry(){
			    openwindow("<%=path%>/pubinfo.do?action=search",'800','600','');
			}
			function selmm(trobj,id)
			{
				if(trobj != null){
					deptid =id;
					if(trKiobj != null)
					   trKiobj.className='td3';
				     trobj.className='td1';
				}
			 trKiobj=trobj;
			}
	 </script> 
	 <script language="JavaScript" src="<%=path%>/js/generalcheck.js"></script> 
</head>
<body leftmargin="0" topmargin="0" >
 <form name="form1" method="post" action="<%=path %>/pubinfo.do?action=delete">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" height="2" id="AutoNumber1">
    <tr>
      <td width="9" height="1">
      </td>
      <td  height="1">
      <p align="center"><b> 记录发布 </b></td>
      <td width="9" height="1">
      </td>
    </tr>
  </table>

  <table border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="80%"   height="1">
     
    
  </table>
<table  border="0" cellpadding="4" cellspacing="1"  class="bg_table" bordercolor="#111111"   id="AutoNumber2">
   
  <tr align="center" class="top_td"> 
		<td height="20" width="5%">序号</td>
		<td height="20" width="5%">选择</td>
		<td height="20" width="20%">主办单位</td>
		<td height="20" width="20%">会议主题</td>
		<td height="20" width="10%">开始时间</td>
		<td height="20" width="10%">结束时间</td>
		<td height="20" width="5%" nowrap>发布人</td>
		<td height="20" width="10%">发布时间</td>
		<td height="20" width="10%">发布终端</td>
		<td height="20" width="5%" nowrap>发布类型</td>
  </tr> 
   <%if(null !=dataList&&dataList.size()>0){
        for(int i=0;i<dataList.size();i++){
                 Map m = (Map)dataList.get(i);
    %>
    <tr <%if(i%2==1){%> class="td2" onMouseOver="this.className='td5'" onMouseOut="this.className='td2'"<%} else {%>class="td3" onMouseOver="this.className='td5'" onMouseOut="this.className='td3'" <%}%> onclick="selmm(this,<%if(m.get("ID") != null) out.print(m.get("ID")); %>)" onMouseOver="this.className='td5'" onMouseOut="this.className='td3'">
      <td width="5%"><%=(query.getCurrentPageNo()-1)*10+(i+1) %></td>
      <td width="5%"><%if(m.get("modify") == null){ %><input type="checkbox" name="meetingId" value="<%=m.get("ID")+"#"+m.get("MEETING_PUBLISH_TYPE") %>"><%}else{ %>&nbsp;<%} %></td>
      <td align="left">中文:<a title='<%=m.get("MEETING_UNIT_CN")%>'><%=StringUtil.subStr(m.get("MEETING_UNIT_CN")+"",8)%></a><br>英文:<a title='<%=m.get("MEETING_UNIT_EN")%>'><%=StringUtil.subStr(m.get("MEETING_UNIT_EN")+"",8)%></a></td>
      <td><a title='<%=m.get("MEETING_NAME")%>'><%=StringUtil.subStr(m.get("MEETING_NAME")+"",15)%></a></td>
      <td><%=StringUtil.dateTimeSubStr(m.get("MEETING_BEGIN_TIME")+"")%></td>
      <td><%=StringUtil.dateTimeSubStr(m.get("MEETING_END_TIME")+"")%></td>
      <td><%=StringUtil.NULL2Blank(m.get("USER_NAME")+"")%></td>
      <td><%=StringUtil.dateTimeSubStr(m.get("MEETING_PUBLISH_TIME")+"")%></td>
      <td><a href="javaScript:openwindow('<%=path%>/client.do?action=view&meetingId=<%=m.get("ID")%>&type=<%=m.get("MEETING_PUBLISH_TYPE")%>','500','400','_blank')">查看</a></td>
      <td><%=StringUtil.returnInfoName(m.get("MEETING_PUBLISH_TYPE")+"")%></td>
    </tr> 
   
    <% }} else{ %>
    
    <tr class="td2"> 
		<td colspan="10" align="center"><font color="red">没有记录</font></td>
	  </tr>
	  <%} %>
	   </form>
     <tr class="top_td1" height="20">
        <td colspan="10" nowrap>
         <%=pageStr %>
        </td>
    </tr>
</table>
</center> 

   
</body>
</html>
<%@ include file="/hotel/pow.jsp"%>